\chapter{}. % line without descenders
\chapter{}. % line with descenders
\chapter{}. % the result is an inconsistent baseline
\stoptext
Is there any remedy for this? Can I fix the baseline distance
somehow?
\definegridsnapping[crap] [fit,0.2]
\setuplayout
{}. % line without descenders
\chapter{}. % line with descenders
\chapter{}. % the result is an inconsistent baseline
\stoptext
Is there any remedy for this? Can I fix the baseline distance
somehow?
\definegridsnapping[crap] [fit,0.2]
\setuplayout[grid=crap]
This helps
?
\definegridsnapping[crap] [fit,0.2]
\setuplayout[grid=crap]
This helps! But... it breaks something else :-(
I've finally found an acceptable solution.
During my tests I found a crucial difference between:
\setupinterlinespace[line=2.0ex]
and
\setupinterlinespace[0.25
?
\definegridsnapping[crap] [fit,0.2]
\setuplayout[grid=crap]
This helps! But... it breaks something else :-(
I've finally found an acceptable solution.
During my tests I found a crucial difference between:
\setupinterlinespace[line=2.0ex]
and
\setupinterlinespace[0.25]
The latter sets
is an inconsistent baseline distance
\stoptext
Is there any remedy for this? Can I fix the baseline distance somehow?
I have such cases in my TOC :-(
(but not so extreme as here)
\definegridsnapping[crap] [fit,0.2]
\setuplayout[grid=crap]
but if you really need that kind of tweaks you might consider
?
\definegridsnapping[crap] [fit,0.2]
\setuplayout[grid=crap]
This helps! But... it breaks something else :-(
I am confused a bit.
What exactly the linespacing is doing? It can set the baseline distance
(line=...), but it is not handled correctly? Is that snapping a workaround
for this deficiency
and different mechanism
\setuplayout[grid=yes] \showgrid % tolerant] \showgrid
\setuppapersize[S6][S6]
\starttext
\setuphead[chapter][after=]
\definegridsnapping[MyOne] [global,strut]
\definegridsnapping[MyTwo] [local,strut]
\definegridsnapping[MyThree][global,strut,top:3]
\definegridsnapping
\definegridsnapping[MyOne] [global,strut] \definegridsnapping[MyTwo]
[local,strut] \definegridsnapping[MyThree][global,strut,top:3]
\definegridsnapping[MyThree][local,strut,top:3]
Should'nt the last one be MyFour
month :(. Just want to
know whether I’ll miss something that important during my time
away.)
Best regards, Philipp
\setuplayout[grid=yes] \showgrid % tolerant] \showgrid
\setuppapersize[S6][S6]
\starttext
\setuphead[chapter][after=]
\definegridsnapping[MyOne] [global,strut
%
{\setuphead[chapter][grid={#1}]
\startchapter[title={Test: #1}]
test \par test \par test
\stopchapter
\startchapter[title={Test: #1\\test\\test}]
test \par test \par test
\stopchapter}
\definegridsnapping[whatever][strut,offset:-2pt]
\definegridsnapping[chapter] [mindepth
is defined as
\definegridsnapping[yes][maxheight,maxdepth,strut]
and you enable with with “grid=yes” a where context tests if “yes”
is a predefined lists but “grid={maxheight,maxdepth,strut}” is also
valid and in this case context defined a dummy list which is passed
to lua. The same happens
the value is checked but no with
gridsnapping.
The “yes” value is defined as
\definegridsnapping[yes][maxheight,maxdepth,strut]
and you enable with with “grid=yes” a where context tests if “yes”
is a predefined lists but “grid={maxheight,maxdepth,strut}” is also
valid and in this case context
!!
Have a look, please:
I have no time now. I will document the grid snapper once I've finished the
(still somewhat experimental) mechanism.
OK. ... Just to avoid basic mistakes:
What is right syntax (direct/indirect)?
The results differ (see below) ...
Steffen
\definegridsnapping
the
(still somewhat experimental) mechanism.
OK. ... Just to avoid basic mistakes:
What is right syntax (direct/indirect)?
The results differ (see below) ...
Steffen
\definegridsnapping[MyGrid] [no]
%\setuplayout[grid=no] % - alternative a
\setuplayout[grid=MyGrid
This can only be used in single, controlled situations.
Look what happens when the section is to be placed at top of page:
\definegridsnapping[MyGrid] [off]
\showframe
\starttext
\setuplayout[grid=MyGrid]
\switchtobodyfont[42pt]
\setupinterlinespace[line=30pt]
Big text\crlf written
Hi,
as there is no setup for paragraphs (see thread before), I really don' know how
to come out of this trap:
I need a tight interlinespace for the normal body text, but no lunatic
headings!!
Have a look, please:
\definegridsnapping[MyGrid] [off]% broad/both/bold/local fit for the text
This I know, only I don't understand the syntax ;o)
Is this 0.8 the threshold you mentioned ...
\definegridsnapping[\v!strict] [\v!maxdepth:0.8,\v!maxheight:0.8,\v!strut]
or 0.8 in here ...
\definegridsnapping[\v!broad][\v!maxheight,\v!maxdepth,\v!strut,0.8]
Or is the second kind of abbreviation
: \definegridsnapping
\switchtobodyfont[42pt] \setupinterlinespace[line=30pt]
Big text\par written in\par three row
\setuplayout[grid=strict] \setupinterlinespace[line=30pt]
Big text\par written in\par three row
\stoptext
with 'yes' the line gets snapped to fit an extra line when too
\enabletrackers[nodes.vsnapping]
\starttext % see spac-ver.mkiv: \definegridsnapping
\switchtobodyfont[42pt] \setupinterlinespace[line=30pt]
Big text\par written in\par three row
\setuplayout[grid=strict] \setupinterlinespace[line=30pt]
Big text\par written in\par three row
We're not downward compatible with \MKII !
\definegridsnapping[\v!normal] [\v!maxheight,\v!maxdepth,\v!strut]
\definegridsnapping[\v!standard] [\v!maxheight,\v!maxdepth,\v!strut]
\definegridsnapping[\v!yes] [\v!maxheight,\v!maxdepth,\v!strut]
\definegridsnapping[\v!strict] [\v!maxdepth:0.8
;o)
Is this 0.8 the threshold you mentioned ...
\definegridsnapping[\v!strict] [\v!maxdepth:0.8,\v!maxheight:0.8,\v!strut]
or 0.8 in here ...
\definegridsnapping[\v!broad][\v!maxheight,\v!maxdepth,\v!strut,0.8]
Or is the second kind of abbreviation for the first?
And even more
% maxheightround height up
% localuse local interline space
% shift:-3tp vertical shift within box
\definegridsnapping[normal] [maxheight,maxdepth,strut]
\definegridsnapping[standard] [maxheight,maxdepth,strut]
\definegridsnapping[yes] [maxheight,maxdepth,strut
local interline space
% shift:-3tp vertical shift within box
\definegridsnapping[normal] [maxheight,maxdepth,strut]
\definegridsnapping[standard] [maxheight,maxdepth,strut]
\definegridsnapping[yes] [maxheight,maxdepth,strut]
\definegridsnapping[strict] [\v!maxdepth:0.8,maxheight:0.8
}
\page
\chapter{one\\line\\line}
\stoptext
how about
\setuplayout[grid=yes] \showgrid
\definegridsnapping[chapter][mindepth,maxheight,local]
\setuphead[chapter][grid=chapter,alternative=top]
\starttext
\chapter{one} \input tufte
\chapter{one\\two}\input tufte
point. oh, and thanks to Wolfgang for his much nicer code
(assimilated).
Peter
\usetypescript[postscript]
\definetypeface[postscript][rm][serif][times][default]
\setupbodyfont[postscript,20pt]
%\definegridsnapping[verytolerant] [maxdepth:1.3,maxheight:1.3,strut]
%\setuplayout[grid=verytolerant
depth up
% minheightround height down
% maxheightround height up
%D We're not downward compatible with \MKII !
\definegridsnapping[\v!normal] [\v!maxheight,\v!maxdepth,\v!strut]
\definegridsnapping[\v!standard] [\v!maxheight,\v!maxdepth,\v!strut]
\definegridsnapping[\v!yes] [\v
)
we have now grid definitions, with predefined:
\definegridsnapping[normal] [maxheight,maxdepth,strut]
\definegridsnapping[standard] [maxheight,maxdepth,strut]
\definegridsnapping[yes] [maxheight,maxdepth,strut]
\definegridsnapping[strict] [maxdepth:0.8,maxheight:0.8,strut
27 matches
Mail list logo